<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    a {
      display: block;
      width: 150px;
      height: 50px;
      background-color: darkorange;
      font: bold 20px/50px "微软雅黑";
      text-align: center;
      color: darkslateblue;
      text-decoration: none;
    }

    a:hover {
      background-color: deeppink;
    }
    p{
      width: 50px;
      height: 50px;
      background-color: blueviolet;
      cursor: pointer;
    }
    p:hover{
      background-color: cadetblue;
    }
  </style>
</head>

<body>
  <a href="http://baidu.com">百度</a>
  <p>wo</p>
</body>

</html>